package com.code.springboot3.model.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddCategoryDto {
    @NotEmpty(message = "用户名不能为空")
    private String categoryName;
    @NotEmpty(message = "密码不能为空")
    private String categoryAlias;
}
